<?php $this->pageTitle = 'Help and Support'; ?>
<div class="flat_area">
    <div class="grid_16 content_header">
        <h1 class="">Contact Us</h1>
        <div class="clear"></div>
    </div>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'action' => $this->createUrl('/support/index'),
        'id' => 'support-form',
        'enableAjaxValidation' => false,
            ));
    ?>
    <div id="support-index" class="grid_8">
        <div class="block">
            <?php echo $form->errorSummary(array($model)); ?>

            <div class="box form">        
                <h2 class="box_head grad_colour round-top with-icon clearfix">
                    Enquiry Form
                </h2>
                <div class="block">
                    
                    <p>Have a question about <?php echo Yii::app()->systemName; ?>? Ask us directly here!</p>
                    <p>Simply fill in the form below, and we'll get back to you as soon as possible.</p>
                    <table class="table full-width">
                        <tr>
                            <td class="align-right valign-top" width="100">
                                <label>Type of Enquiry:</label>
                            </td>
                            <td class="valign-top">
                                <?php echo $form->dropDownList($model, 'type', SupportForm::getTypeOptions()); ?>
                            </td>
                        </tr>
                        <tr>
                            <td class="align-right valign-top" width="100">
                                <label>Your Message:</label>
                            </td>
                            <td class="valign-top">
                                <?php echo $form->textArea($model, 'message', array('rows' => 8, 'style' => 'width: 96%')); ?>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><?php echo CHtml::submitButton('Submit', array('class' => 'orange')); ?></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <?php $this->endWidget(); ?>
    <!-- Start of Zopim Live Chat Script -->
    <script type="text/javascript">
        //    window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=
        //            z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o
        //    ){z.set._.push(o)};$.setAttribute('charset','utf-8');$.async=!0;z.set.
        //            _=[];$.src=('https:'==d.location.protocol?'https://ssl':'http://cdn')+
        //            '.zopim.com/?4NZNepuOgqsl5KShzmaM7QxaHSyNvIyq';$.type='text/java'+s;z.
        //            t=+new Date;z._=[];e.parentNode.insertBefore($,e)})(document,'script')
    </script>
    <!-- End of Zopim Live Chat Script -->
</div>


